webpackJsonphippius([8],{

/***/ 173:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_Notify_vue__ = __webpack_require__(493);
/* empty harmony namespace reexport */
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_d307e170_hasScoped_true_transformToRequire_video_src_poster_source_src_img_src_image_xlink_href_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_Notify_vue__ = __webpack_require__(518);
function injectStyle (ssrContext) {
  __webpack_require__(517)
}
var normalizeComponent = __webpack_require__(5)
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-d307e170"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null
var Component = normalizeComponent(
  __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_Notify_vue__["a" /* default */],
  __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_d307e170_hasScoped_true_transformToRequire_video_src_poster_source_src_img_src_image_xlink_href_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_Notify_vue__["a" /* default */],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);


/***/ }),

/***/ 493:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue__ = __webpack_require__(48);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_hippius__ = __webpack_require__(162);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//




__WEBPACK_IMPORTED_MODULE_0_vue__["a" /* default */].use(__WEBPACK_IMPORTED_MODULE_1_hippius__["l" /* NotifyPlugin */]);

/* harmony default export */ __webpack_exports__["a"] = ({
  components: {
    HButton: __WEBPACK_IMPORTED_MODULE_1_hippius__["e" /* HButton */],
    Notify: __WEBPACK_IMPORTED_MODULE_1_hippius__["k" /* Notify */]
  },
  data: function data() {
    return {
      show1: false,
      show2: false
    };
  },

  methods: {
    // 标签用法
    showNotifyAtTop: function showNotifyAtTop() {
      if (this.show1) return;
      this.show1 = true;
    },
    showNotifyAtBottom: function showNotifyAtBottom() {
      if (this.show2) return;
      this.show2 = true;
    },

    // 插件用法
    showNotify: function showNotify() {
      var ops = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};

      this.$notify.show({
        content: ops.content,
        position: ops.position,
        time: ops.time,
        onShow: ops.onShow,
        onHide: ops.onHide
      });
    },
    handleNotify: function handleNotify() {
      this.showNotify({
        content: '提示内容',
        position: 'top',
        time: 2000,
        onShow: function onShow() {
          console.log('on-show');
        },
        onHide: function onHide() {
          console.log('on-hide');
        }
      });
    }
  }
});

/***/ }),

/***/ 517:
/***/ (function(module, exports) {

// removed by extract-text-webpack-plugin

/***/ }),

/***/ 518:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('section',{staticClass:"content-view wrapper"},[_c('div',{staticClass:"local-region"},[_c('notify',{attrs:{"content":"提示内容"},model:{value:(_vm.show1),callback:function ($$v) {_vm.show1=$$v},expression:"show1"}}),_vm._v(" "),_c('notify',{attrs:{"time":3000,"position":"bottom","content":"提示内容"},model:{value:(_vm.show2),callback:function ($$v) {_vm.show2=$$v},expression:"show2"}})],1),_vm._v(" "),_c('h2',{staticClass:"item-title"},[_vm._v("标签用法 (通常在局部显示时使用)")]),_vm._v(" "),_c('h-button',{staticClass:"button-class",attrs:{"type":"rimless","shadow":""},nativeOn:{"click":function($event){return _vm.showNotifyAtTop($event)}}},[_vm._v("Notify (top)")]),_vm._v(" "),_c('h-button',{staticClass:"button-class",attrs:{"type":"rimless","shadow":""},nativeOn:{"click":function($event){return _vm.showNotifyAtBottom($event)}}},[_vm._v("Notify (bottom)")]),_vm._v(" "),_c('h2',{staticClass:"item-title"},[_vm._v("插件用法")]),_vm._v(" "),_c('h-button',{staticClass:"button-class purple",attrs:{"type":"rimless","shadow":""},nativeOn:{"click":function($event){return _vm.handleNotify($event)}}},[_vm._v("NotifyPlugin")])],1)}
var staticRenderFns = []
var esExports = { render: render, staticRenderFns: staticRenderFns }
/* harmony default export */ __webpack_exports__["a"] = (esExports);

/***/ })

});